import 'package:environmental_les_app/common/widgets/search_entry_widget.dart';
import 'package:flutter_clx_base/flutter_clx_base.dart';

import '../widgets/item_member_widget.dart';
import 'index.dart';

class DepartmentPage extends GetView<DepartmentController> {
  const DepartmentPage({super.key});

  // 主视图
  Widget _buildView() {
    return const Column(
      children: [
        SearchEntryWidget(hintText: "搜索联系人"),
        ItemMemberWidget(),
        ItemMemberWidget(),
        ItemMemberWidget(),
      ],
    );
  }

  @override
  Widget build(BuildContext context) {
    return GetBuilder<DepartmentController>(
      init: DepartmentController(),
      id: "department",
      builder: (_) {
        return MyScaffold(
          title: "环境监察大队",
          body: SafeArea(
            child: _buildView(),
          ),
        );
      },
    );
  }
}
